package com.lee.response;

/**
 * Created by Administrator on 2017/11/27.
 */
public class Result {
    private Integer retCode;
    private String message;

    public Result(Integer retCode, String message) {
        this.retCode = retCode;
        this.message = message;
    }

    public Integer getRetCode() {
        return retCode;
    }

    public void setRetCode(Integer retCode) {
        this.retCode = retCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static  Result ok(){
        return Result.ok("");
    }

    public static  Result ok(String message){
        return new Result(0,message);
    }

    public static Result fail(){
        return Result.fail("");
    }

    public static Result fail(String message){
        return new Result(1,message);
    }
}
